package com.manli.api.dto;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 
 * 
 * @author manli
 * @email 
 * @date 2020-05-12 09:11:18
 */
@ApiModel(value = "goodsdef")
@Data
public class GoodsDef implements Serializable {

	/**
	 * 唯一标识
	 */

    @ApiModelProperty(value = "唯一标识",dataType = "Integer")
	    private Integer goodsDefId;
	/**
	 * 商品名称
	 */

    @ApiModelProperty(value = "商品名称",dataType = "String")
	    private String goodsName;
	/**
	 * 商品图片 可以多个用逗号隔开
	 */

    @ApiModelProperty(value = "商品图片 可以多个用逗号隔开",dataType = "String")
	    private String goodsPic;
	/**
	 * 
	 */

    @ApiModelProperty(value = "",dataType = "String")
	    private String goodsDescription;
	/**
	 * 
	 */

    @ApiModelProperty(value = "",dataType = "String")
	    private String goodsTips;
	/**
	 * -2草稿 ,-1提交审核(待审核)0退回,1上架成功,2下架
	 */

    @ApiModelProperty(value = "-2草稿 ,-1提交审核(待审核)0退回,1上架成功,2下架",dataType = "Integer")
	    private Integer status;
	/**
	 * 
	 */

    @ApiModelProperty(value = "",dataType = "Integer")
	    private Integer branchId;
	/**
	 * 
	 */

    @ApiModelProperty(value = "",dataType = "Integer")
	    private Integer partnerId;
	/**
	 * 1：到店自取 2：商家配送 3：平台配送
	 */

    @ApiModelProperty(value = "1：到店自取 2：商家配送 3：平台配送",dataType = "String")
	    private String buyMethod;
	/**
	 * 创建时间
	 */

    @ApiModelProperty(value = "创建时间",dataType = "Date")
	    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;

	/**
	 * 创建人id
	 */

	@ApiModelProperty(value = "创建人id",dataType = "Integer")
	private Integer createrUserid;

	/**
	 * 更新人id
	 */

	@ApiModelProperty(value = "更新人id",dataType = "Integer")
	private Integer updaterUserid;

	/**
	 * 更新时间
	 */

	@ApiModelProperty(value = "更新时间",dataType = "Date")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date updateTime;

	/**
	 * 审核时间
	 */

    @ApiModelProperty(value = "审核时间",dataType = "Date")
	    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date auditTime;
	/**
	 * 审核备注
	 */

    @ApiModelProperty(value = "审核备注",dataType = "String")
	    private String auditMsg;

	/**
	 * 审核人userid
	 */

	@ApiModelProperty(value = "审核人userid",dataType = "Integer")
	private Integer auditUser;

	/**
	 * 配送方式
	 */

	@ApiModelProperty(value = "配送方式",dataType = "String")
	private String buyMethodName;

	/**
	 * 商品状态
	 */

	@ApiModelProperty(value = "商品状态",dataType = "String")
	private String goodsStatus;

	/**
	 * 机构名称
	 */

	@ApiModelProperty(value = "机构名称",dataType = "String")
	private String branchName;

	/**
	 * 分店名称
	 */

	@ApiModelProperty(value = "分店名称",dataType = "String")
	private String partnerName;

	/**
	 * 产品主营所属id
	 */

	@ApiModelProperty(value = "产品主营所属id",dataType = "String")
	private String goodsMajorType;

	/**
	 * 产品主营所属名称
	 */

	@ApiModelProperty(value = "产品主营所属名称",dataType = "String")
	private String goodsMajorTypeName;

	/**
	 * 申请活动类型
	 */

	@ApiModelProperty(value = "申请活动类型",dataType = "Integer")
	private Integer applyActivityTypeId;

	/**
	 * 申请活动结束时间
	 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "申请活动结束时间",dataType = "Date")
	private Date applyActivityEndTime;

	/**
	 * 申请活动开始时间
	 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "申请活动开始时间",dataType = "Date")
	private Date applyActivityStartTime;

	/**
	 * 活动申请内容
	 */

	@ApiModelProperty(value = "活动申请内容",dataType = "String")
	private String applyActivityRemark;

	/**
	 * 申请活动类型
	 */

	@ApiModelProperty(value = "申请活动类型",dataType = "String")
	private String activityTypeName;

    /**
     * 审核后申请活动结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "审核后申请活动结束时间",dataType = "Date")
    private Date verifiedApplyActivityEndTime;

    /**
     * 审核后申请活动开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "审核后申请活动开始时间",dataType = "Date")
    private Date verifiedApplyActivityStartTime;


	/**
	 * 商品规格
	 */

	@ApiModelProperty(value = "商品规格",dataType = "List")
	private List<GoodsModel> goodsModels;

}
